package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PaymentsMapper;
import com.ruoyi.system.domain.Payments;
import com.ruoyi.system.service.IPaymentsService;

/**
 * 订单支付Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class PaymentsServiceImpl implements IPaymentsService 
{
    @Autowired
    private PaymentsMapper paymentsMapper;

    /**
     * 查询订单支付
     * 
     * @param id 订单支付主键
     * @return 订单支付
     */
    @Override
    public Payments selectPaymentsById(Long id)
    {
        return paymentsMapper.selectPaymentsById(id);
    }

    /**
     * 查询订单支付列表
     * 
     * @param payments 订单支付
     * @return 订单支付
     */
    @Override
    public List<Payments> selectPaymentsList(Payments payments)
    {
        return paymentsMapper.selectPaymentsList(payments);
    }

    /**
     * 新增订单支付
     * 
     * @param payments 订单支付
     * @return 结果
     */
    @Override
    public int insertPayments(Payments payments)
    {
        return paymentsMapper.insertPayments(payments);
    }

    /**
     * 修改订单支付
     * 
     * @param payments 订单支付
     * @return 结果
     */
    @Override
    public int updatePayments(Payments payments)
    {
        return paymentsMapper.updatePayments(payments);
    }

    /**
     * 批量删除订单支付
     * 
     * @param ids 需要删除的订单支付主键
     * @return 结果
     */
    @Override
    public int deletePaymentsByIds(Long[] ids)
    {
        return paymentsMapper.deletePaymentsByIds(ids);
    }

    /**
     * 删除订单支付信息
     * 
     * @param id 订单支付主键
     * @return 结果
     */
    @Override
    public int deletePaymentsById(Long id)
    {
        return paymentsMapper.deletePaymentsById(id);
    }
}
